package activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import csf.getmoney.MainActivity;
import csf.getmoney.MainApplication;
import csf.getmoney.R;

public class MyAccountInfoActivity extends Activity implements OnClickListener {
	
	
	Button btn_back;

	TextView tv_my_id;
	TextView tv_my_nickname;
	
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.activity_account_info_);
	    
	    
	    tv_my_id = (TextView) findViewById(R.id.tv_my_id);
	    tv_my_nickname = (TextView) findViewById(R.id.tv_my_ninkname);
	    
	    
	    btn_back = (Button) findViewById(R.id.btn_back);
		btn_back.setOnClickListener(this);
		
		
		tv_my_id.setText(MainApplication.userInfo.getMember_id());
		tv_my_nickname.setText(MainApplication.userInfo.getNickname());
		
	}
	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_back:
			finish();
			break;

		}
	}

}
